#pragma once
#include<iostream>
#include<unistd.h>
#include<sstream>


class Task
{
public:
    Task()
    {}
    Task(int a,int b):_a(a),_b(b)
    {}
    void Execute()
    {
        _result = _a + _b;
    }
    void operator()()
    {
        // sleep(1);
        Execute();
    }
    void Print()
    {
        std::cout << _a << " + " << _b << " = " << _result << std::endl;
    } 
     std::string Result2String()
    {
        std::stringstream ss;
        ss << _a << " + " << _b << " = " << _result;
        return ss.str();
    }
private:
    int _a;
    int _b;
    int _result;
};